<template>
	<view class="downLoadPage flex-col">
		<u-navbar title="DownLoad" bgColor="#000" leftIconColor="#fff" leftIconSize="40rpx" titleStyle="color:#fff"
			height="100rpx" :autoBack="true">
		</u-navbar>
		<view class="logo-wrap">
			<image mode="widthFix" src="/static/logo.png" class="logo"></image>
			<image mode="widthFix" src="/static/logo-icon.png" class="logo-icon"></image>
		</view>
		<view class="downLoad-content">
			<view class="item" @click="goExternalLink">
				<image class="label_icon" mode="widthFix" src="/static/icon_apple.png" />
				<text class="text-wz"> DownLoad on the App Store </text>
			</view>

			<view class="item" @click="goExternalLink">
				<image class="label_icon" mode="widthFix" src="/static/icon_google.png" />
				<text class="text-wz"> GET IT ON Google Play </text>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				constants: {},
			};
		},
		methods: {
			goExternalLink() {
				const url = 'https://onelink.to/flowshort'
				window.open(url, '_blank')
			}
		},
	};
</script>
<style lang="scss" scoped>
	.downLoadPage {
		position: relative;
		width: 100%;
		min-height: calc(100vh - 100rpx);
		background-color: rgba(0, 0, 0, 1);
		display: flex;
		justify-content: center;
		align-items: center;
		flex-direction: column;
		overflow: hidden;

		.logo-wrap {
			width: 100%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			margin-bottom: 160rpx;

			.logo {
				width: 340rpx;
			}

			.logo-icon {
				width: 200rpx;
			}
		}

		.downLoad-content {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;

			.item {
				background-color: rgba(39, 83, 213, 1);
				border-radius: 26px;
				padding: 24rpx 20rpx 24rpx 50rpx;
				color: #fff;
				font-family: PingFangSC-Semibold;
				display: flex;
				align-items: center;
				justify-self: center;
				margin: 40rpx 0;
				width: 620rpx;

				.label_icon {
					width: 56rpx;
					height: 56rpx;
					margin-right: 20rpx;
				}

				.text-wz {
					overflow-wrap: break-word;
					color: white;
					font-size: 16px;
					font-family: PingFangSC-Semibold;
					font-weight: 600;
					text-align: left;
					white-space: nowrap;
					line-height: 22px;
				}
			}
		}
	}
</style>